package com.ben.multiple.mycat.two.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 测试根据日期进行分片
 */
@Data
@TableName("partition_by_date")
public class PartitionByDate implements Serializable {

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    private String source;

    private Integer amount;

    private String remark;

    private LocalDateTime createTime;

}
